<template>
  <div class="template-index-warp">
    <div class="header">
      <p class="p1"></p>
      <p class="p2"></p>
      <p class="p3">物流大数据展示系统</p>
    </div>
    <div class="contain">
      <ul>
        <li v-for="(item,index) in routerList" :key="index">
          <a @click="jumpPage(item.path)">
            <img :src=item.logo>
            <span>{{item.name}}</span>
          </a>
        </li>
      </ul>
    </div>
  </div>
</template>
<script>

    export default {
        components:{

        },
        data(){
            return{
                routerList:[
                    {logo:'http://v.bootstrapmb.com/2020/12/dmitw9353/images/jinrong.png',name:'大屏一',path:'/itemOne'},
                    {logo:'http://v.bootstrapmb.com/2020/12/dmitw9353/images/xinyong.png',name:'大屏二',path:'/itemTwo'},
                    {logo:'http://v.bootstrapmb.com/2020/12/dmitw9353/images/fengxian.png',name:'大屏三'},
                    {logo:'http://v.bootstrapmb.com/2020/12/dmitw9353/images/chanye.png',name:'大屏四'},
                ]
            }
        },
        mounted() {

        },
        methods:{
            /*跳转页面*/
            jumpPage(path){
                this.$router.push(path)
            }

        }
    }
</script>

<style lang="scss">
  .template-index-warp{
    height: 100%;
    min-height: 1080px;
    background: url('~@/assets/bg.png');
    .header{
      width: 700px;
      margin: 0 auto;
      .p1{
        width: 60px;
        height: 60px;
        margin: 0 auto;
      }
      .p2{
        height: 40px;
        margin: 0 auto;
        text-align: center;
        line-height: 40px;
        margin-top: 10px;
        font-size: 20px;
        color: #fec468;
      }
      .p3{
        height: 40px;
        margin: 0 auto;
        text-align: center;
        line-height: 40px;
        font-size: 28px;
        color: #bddde6;
      }
    }
    .contain{
      width: 1300px;
      margin: 0 auto;
      margin-top: 80px;
      height: 400px;
      ul{
        width: 100%;
        height: 100%;
        li{
          list-style: none;
          width: 600px;
          height: 200px;
          line-height: 210px;
          float: left;
          background-image: url('~@/assets/kuang.png');
          background-position: center center;
          background-repeat: no-repeat;
          margin-bottom: 50px;
          background-color: transparent;
          & > :hover{
            background: url('~@/assets/chooseKuang.png') center center no-repeat;
          }
          img{
            display: inline-block;
            margin-left: -45px;
          }
          span{
            display: inline-block;
            vertical-align: 16px;
            font-size: 30px;
            color: #57daff;
            margin-left: 20px;
          }
          a{
            display: block;
            width: 100%;
            height: 100%;
            text-align: center;
            cursor: pointer;
          }
        }
      }
    }

  }
</style>
